package com.hnkywl.sts.action.report;

import com.hnkywl.sts.entity.organ.Ejzh;
import com.hnkywl.sts.entity.sys.Bm;
import com.hnkywl.sts.service.base.BmService;
import com.hnkywl.sts.service.organ.EjzhService;
import com.hnkywl.sts.service.report.FkhzjbService;
import net.ruixin.web.struts2.SimpleActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-3-25
 * Time: 下午3:51
 * To change this template use File | Settings | File Templates.
 */
@Namespace("/report/fkhzjb")
public class FkhzjbAction extends SimpleActionSupport {
    private FkhzjbService fkhzjbService;
    //分页组件 起始位置
    private int page;
    //分页组件 页面大小
    private int rows;
    private String gsMc;
    private String khMc;
    private Long khId;
    private Long kxsy;

    @Action("fkhzjbdetail")
    public String fkhzjbdetail() {
        return SUCCESS;
    }

    @Action("fkhzjbList")
    public void fkhzjbList() {
        this.renderJson(this.fkhzjbService.findfkhzjbList(gsMc, khMc, page, rows));
    }

    @Action("czjemxList")
    public void czjemxList() {
        this.renderJson(this.fkhzjbService.findAllSkshByKhId(khId, kxsy, page, rows));
    }

    @Autowired
    public void setFkhzjbService(FkhzjbService fkhzjbService) {
        this.fkhzjbService = fkhzjbService;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public String getGsMc() {
        return gsMc;
    }

    public void setGsMc(String gsMc) {
        this.gsMc = gsMc;
    }

    public String getKhMc() {
        return khMc;
    }

    public void setKhMc(String khMc) {
        this.khMc = khMc;
    }

    public Long getKhId() {
        return khId;
    }

    public void setKhId(Long khId) {
        this.khId = khId;
    }

    public Long getKxsy() {
        return kxsy;
    }

    public void setKxsy(Long kxsy) {
        this.kxsy = kxsy;
    }
}
